package com.eastfair.common.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import static com.eastfair.core.utils.DateUtils.DEFAULT_DATE_FORMAT;

/**
 * 项目与主办方关系对象 gm_api_prj_and_host_rel
 *
 * @author wyp
 * @date 2022-12-07
 */
@Data
@ApiModel(discriminator = "项目与主办方关系")
public class GmApiPrjAndHostRelDto implements Serializable{

    private static final long serialVersionUID = 1L;

    /** 项目与主办方关系ID */
    @ApiModelProperty(value = "项目与主办方关系ID")
    private String prjAndSpsRelId;

    /** 项目编号 */
    @Excel(name = "项目编号")
    @ApiModelProperty(value = "项目编号")
    private String prjId;

    /** 主办方编号 */
    @Excel(name = "主办方编号")
    @ApiModelProperty(value = "主办方编号")
    private String spsId;

    /** 关系类型 */
    @Excel(name = "关系类型")
    @ApiModelProperty(value = "关系类型")
    private String reTp;

    /** 数据来源 */
    @Excel(name = "数据来源")
    @ApiModelProperty(value = "数据来源")
    private String dtSrc;

    /** 删除标志 */
    @Excel(name = "删除标志")
    @ApiModelProperty(value = "删除标志")
    private String delInd;

    /** #加载批次 */
    @Excel(name = "#加载批次")
    @ApiModelProperty(value = "#加载批次")
    private String loadBtno;

    /** #加载时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "#加载时间", width = 30, format = DEFAULT_DATE_FORMAT)
    @ApiModelProperty(value = "#加载时间")
    private String loadTm;
    @ApiModelProperty(value = "#加载时间")
    private String prjIdAndSpsId ;

    /** 证件类型代码 */
    @Excel(name = "证件类型代码")
    @ApiModelProperty(value = "证件类型代码")
    private String crdtTpcd;

    /** 证件号码 */
    @Excel(name = "证件号码")
    @ApiModelProperty(value = "证件号码")
    private String crdtNo;
}